package com.jxy.bean.constant;

import com.jxy.bean.ClassFile;
import com.jxy.tool.Tool;

import java.io.DataInputStream;

public class FloatInfo extends ConstantPool {
    public float bytes;

    public FloatInfo(DataInputStream dis, ClassFile cf) {
        super(ConstantPoolTag.CONSTANT_Float.getTag(), cf);
        bytes = Tool.readLong(dis);
    }

    @Override
    public String toString() {
        return ConstantPoolTag.CONSTANT_Float.getType() + "{tag:" + getTag() + ", bytes=" + bytes + "}";
    }
}
